package com.ag.wsq.action;

import org.apache.log4j.Logger;

import com.ag.common.AjaxNotify;
import com.ag.common.BaseAction;
import com.ag.wsq.service.impl.SchedBaseServiceImpl;

@SuppressWarnings("serial")
public class DelDutyAction extends BaseAction {
	private static final Logger logger = Logger.getLogger(DelDutyAction.class);
	private SchedBaseServiceImpl schedBaseServiceImpl;
	
	private String ajaxRst;
	private String UId;
	/**
	 * 根据ID删除岗位
	 * 
	 * @return
	 */
	public String delDutyById(){
		try {
			logger.info("print id---"+UId);
			schedBaseServiceImpl.delete(UId);
			ajaxRst = AjaxNotify.SUCCESS;
			return "operate";
		} catch (Exception e) {
			e.printStackTrace();
			ajaxRst = AjaxNotify.EXCEPTION;
			return "operate";
		}
	}
	
	public SchedBaseServiceImpl getSchedBaseServiceImpl() {
		return schedBaseServiceImpl;
	}
	public void setSchedBaseServiceImpl(SchedBaseServiceImpl schedBaseServiceImpl) {
		this.schedBaseServiceImpl = schedBaseServiceImpl;
	}
	public String getAjaxRst() {
		return ajaxRst;
	}
	public void setAjaxRst(String ajaxRst) {
		this.ajaxRst = ajaxRst;
	}
	public String getUId() {
		return UId;
	}
	public void setUId(String uId) {
		UId = uId;
	}
}
